<template>
  <div class="app-container home">
    <h1>版本:{{ version.version_no }}</h1>
    <el-divider />
    <div style="font-size: 19px; font-weight: bold">更新内容:</div>
    <div v-for="(item, index) in version.update_content" :key="index">
      <p>{{ item }}</p>
    </div>
  </div>
</template>

<script>
export default {
  activated() {
    this.$nextTick(() => this.$refs['TableRef']?.doLayout())
  },
  name: 'Index',
  data() {
    return {
      // 版本号
      version: {},
    }
  },
  mounted() {
    fetch(`/version.json?timestamp=${new Date().getTime()}`)
      .then((version) => version.json())
      .then((res) => {
        this.version = { ...res }
      })
  },
  methods: {},
}
</script>

<style scoped lang="scss">
.home {
  padding: 20px 40px;
}
</style>
